﻿package wibrst.events {
	import flash.events.Event;
	import wibrst.utils.DevUtil;
	
	/**
	 * ...
	 * @author wibrst@qq.com
	 */
	public class EDataTransfer extends Event{
		
		public function get dataTrans():Object { return _dataTrans; }
		
		private var _type:String;
		private var _dataTrans:Object;
		
		public function EDataTransfer( type:String, dataTrans:Object = null, bTrace:Boolean = false ) {
			super( type, false, false );
			_type = type;
			// if( bTrace ) trace( this, "dataTrans:", DevUtil.viewThru( dataTrans ) );
			_dataTrans = dataTrans;
		}
		
		public override function clone():Event {
			return new EDataTransfer( _type, _dataTrans );
		}
		
		/*public override function toString():String {
			return formatToString( "_dataTrans" );
		}*/
		
	}

}